package com.retoc.oawx.service;

import com.retoc.oawx.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
* @author retoc
* @description 针对表【tb_role(角色表)】的数据库操作Service
* @createDate 2022-05-01 20:00:13
*/
public interface RoleService extends IService<Role> {
    public ArrayList<HashMap> searchRoleOwnPermission(int id);
    public List<Role> searchAllRole();
    public void deleteRoleById(int id);
    public ArrayList<HashMap> searchAllPermission();
    public void insertRole(Role role);
    public void updateRolePermissions(Role role);

}
